const { mergeConfig } = require('metro-config')
const { getMetroConfig } = require('@tarojs/rn-supporter')
const path = require('path')

module.exports = (async function () {
  return mergeConfig(
    {
      // custom your metro config here
      // https://facebook.github.io/metro/docs/configuration
      resolver: {},
      alias: {
        '~taro-ui/dist': `~taro-ui/rn`
      }
    },
    await getMetroConfig()
  )
})()
